package com.maxafa.simpleimageprocessing;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class MainActivity extends Activity {
	
	private MainSurfaceView m_mainsurfaceview;
	
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        m_mainsurfaceview = new MainSurfaceView(this);		
		setContentView(m_mainsurfaceview);
	}
	
	@Override
	public void onStart(){
		super.onStart();    
	}
	
	@Override
	public void onStop(){
		super.onStop();
	}
	
	@Override
	public void onDestroy(){
		super.onDestroy();
	}
	
	@Override
	public void onBackPressed(){
        MainActivity.this.finish();
	}
	
	@Override
	public void onPause(){
		super.onPause();
		m_mainsurfaceview.GamePause();
	}
	
	@Override
	public void onResume(){
		super.onResume();
		m_mainsurfaceview.GameResume();
	}
}
